﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace RBAC.MaHaiBo.Entity
{
    /// <summary>
    /// 用户表
    /// </summary>
    [Table("UserInfo")]
    public class UserInfo
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        [Key]
        public int uId { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string? accountNumber { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? password { get; set; }
        /// <summary>
        /// 部门 
        /// </summary>
        public int department {  get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string? uName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public bool uSex { get; set; }
        /// <summary>
        /// 所在省份
        /// </summary>
        public int provinceId { get; set; }
        /// <summary>
        /// 所在市
        /// </summary>
        public int cityId { get; set; }
        /// <summary>
        /// 所在县
        /// </summary>
        public int countyId { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string? address { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? creator { get; set; } = "张三";
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime creationTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        public string? modifier { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? modificationTime { get; set; }
        /// <summary>
        /// 删除标记 false 
        /// </summary>
        public bool deleteFlag { get; set; } = false;

    }
}
